let baseUrl="https://api.it120.cc/small4";
function request(params){
	return new Promise((resolve,reject)=>{
		uni.request({
			...params,
			url:baseUrl+params.url,
			success(res) {
				resolve(res)
			},
			fail(err) {
				reject(err)
			}
		})
		
	})
	
}

export default request